﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using G.Controls;

namespace G.WeiBo.View.ChildWindows
{
    public partial class BrowserWebChildWindow : ChildWindow
    {

        public BrowserWebChildWindow(string url)
        {
            InitializeComponent();
            web.Navigate(new Uri(url, UriKind.Absolute));
        }

        private void WebBrowser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {
            progressBar.Visibility = System.Windows.Visibility.Collapsed;
        }

        private void WebBrowser_Navigating(object sender, Microsoft.Phone.Controls.NavigatingEventArgs e)
        {
            progressBar.Visibility = System.Windows.Visibility.Visible;
        }
    }
}
